package com.meiyou.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;


import com.meiyou.mapper.MeiyouEvaluateMapper;
import com.meiyou.pojo.MeiyouEvaluate;
import com.meiyou.pojo.MeiyouEvaluateExample;
import com.meiyou.pojo.vo.MyPingJia;
import com.meiyou.service.EvaContentService;

@Service
public class EvaContentServiceImpl implements EvaContentService {
	@Resource
	private MeiyouEvaluateMapper meiyouEvaluateMapper;

	
	public int insEvaluate(MeiyouEvaluate meiyouEvaluate) {
		return meiyouEvaluateMapper.insert(meiyouEvaluate);
	}

	public int delEvaluate(int id) {
		MeiyouEvaluateExample example = new MeiyouEvaluateExample();
			example.createCriteria().andIdEqualTo(id);
		return meiyouEvaluateMapper.deleteByExample(example);
	}

	public List<MyPingJia> selGuidePJ(String eUCount) {
		return meiyouEvaluateMapper.selGuidePJ(eUCount);
	}

	public List<MyPingJia> selYuehuiPJ(String eUCount) {
		return meiyouEvaluateMapper.selYuehuiPJ(eUCount);
	}

	public List<MyPingJia> selTuinaPJ(String eUCount) {
		return meiyouEvaluateMapper.selTuinaPJ(eUCount);
	}

	public List<MyPingJia> selTourPJ(String eUCount) {
		return meiyouEvaluateMapper.selTourPJ(eUCount);
	}
}
